package com.example.controller;

import com.example.entity.Advertisement;
import com.example.entity.activity.Activity1;
import com.example.service.ActivityService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by simon on 2018/12/18.
 * 活动
 */
@RestController
@RequestMapping("api/activity")
public class ActivityController {

    @Autowired
    ActivityService activityService;

    @ApiOperation(value = "活动1信息记录", notes = "活动1信息记录")
    @RequestMapping(value = "/addActivity1", method = RequestMethod.POST)
    Map<String, Object> add(@RequestBody Activity1 activity1) {
        return activityService.addActivity1(activity1);
    }

}
